using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._LocationReferencingTools
{
    /// <summary>
    /// <para>Apply Event Behaviors</para>
    /// <para>Updates the event locations for all event feature classes registered with the input network based on the route edit performed.</para>
    /// <para>根据执行的路径编辑更新注册到输入网络的所有事件要素类的事件位置。</para>
    /// </summary>    
    [DisplayName("Apply Event Behaviors")]
    public class ApplyEventBehaviors : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ApplyEventBehaviors()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_route_features">
        /// <para>Input Route Features</para>
        /// <para>The LRS Network for which event locations will be updated. This must be a feature layer registered as a network with the LRS.</para>
        /// <para>将更新其事件位置的 LRS 网络。这必须是注册为 LRS 网络的要素图层。</para>
        /// </param>
        public ApplyEventBehaviors(object _in_route_features)
        {
            this._in_route_features = _in_route_features;
        }
        public override string ToolboxName => "Location Referencing Tools";

        public override string ToolName => "Apply Event Behaviors";

        public override string CallName => "locref.ApplyEventBehaviors";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_route_features, _out_event_layers, _out_details_file];

        /// <summary>
        /// <para>Input Route Features</para>
        /// <para>The LRS Network for which event locations will be updated. This must be a feature layer registered as a network with the LRS.</para>
        /// <para>将更新其事件位置的 LRS 网络。这必须是注册为 LRS 网络的要素图层。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Route Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_route_features { get; set; }


        /// <summary>
        /// <para>Output Event Layers</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Event Layers")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public List<object> _out_event_layers { get; set; }


        /// <summary>
        /// <para>Output Details File</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Details File")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_details_file { get; set; }


        public ApplyEventBehaviors SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}